package cn.farm.farm.MessageModel;

import org.apache.solr.common.SolrDocumentList;

public class SolrData {
    //当前页数量
    int num;
    //总数
    long size;
    //当前页
    int pageSize;

    SolrDocumentList solrDocuments;

    public SolrData(int num, long size, int pageSize, SolrDocumentList solrDocuments) {
        this.num = num;
        this.size = size;
        this.pageSize = pageSize;
        this.solrDocuments = solrDocuments;
    }

    public SolrData() {
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public SolrData(int num, long size, int pageSize) {
        this.num = num;
        this.size = size;
        this.pageSize = pageSize;
    }

    public SolrDocumentList getSolrDocuments() {
        return solrDocuments;
    }

    public void setSolrDocuments(SolrDocumentList solrDocuments) {
        this.solrDocuments = solrDocuments;
    }
}
